package tests;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import business.Aluno;
import business.AreaCientifica;
import business.CalendarDate;
import business.Curso;
import business.Departamento;
import business.Disciplina;
import business.Inicial;
import business.Inscricao;
import business.Professor;
import business.Seccao;

public class Aluno_Test {
	static Professor p;
	static Aluno a,a2;
	static Disciplina d;
	static Inscricao i,i2;
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		
		Inicial.open("data/phenix_B.cmd");
		Inicial.infoState();
		
//		p = new Professor("Ze", new CalendarDate(12, 2, 1980), "email",
//				Professor.GrauAcademico.doutor, Professor.Categoria.assistente,
//				0, "c123", new Seccao("Info", new Departamento("DCTI")));
//		d = new Disciplina("Engenharia de SW", null, new AreaCientifica("Ciencias da Computacao"), p, null);
//		a = new Aluno("Mariozinho", new CalendarDate(2, 3, 1989), "email", 24492);
//		i = new Inscricao(a, d, null, null, 20);
//		i2= new Inscricao(a2, d, null, null, 20);
//		a2 = new Aluno("asd", new CalendarDate(2, 3, 1989), "email", 233);
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testObjectos() {
		fail("Not yet implemented");
	}

	@Test
	public void testAluno() {
		fail("Not yet implemented");
	}

	@Test
	public void testAlunoStringCalendarDateStringInt() {
		fail("Not yet implemented");
	}

	@Test
	public void testInscricoes() {
		fail("Not yet implemented");
	}

	@Test
	public void testDisciplinas() {
		fail("Not yet implemented");
	}

	@Test
	public void testMatriculas() {
		fail("Not yet implemented");
	}

	@Test
	public void testPerfis() {
		fail("Not yet implemented");
	}

	@Test
	public void testSetNumero() {
		fail("Not yet implemented");
	}

	@Test
	public void testCreditosObtidos() {
		fail("Not yet implemented");
	}

	@Test
	public void testAprovadas() {
		Aluno a = Aluno.objectos().iterator().next();
		a.aprovadas();
	}
	
	@Test
	public void testMedia() {
//		Aluno a = Aluno.objectos().iterator().next();
//		a.media(a.perfis().iterator().next().getCurso());
		fail("Not yet implemented");
	}

}
